package cn.luckdou.system.service.impl.bus_dict;

import cn.luckdou.system.model.bus_dict.BusDict;
import cn.luckdou.system.mapper.bus_dict.BusDictMapper;
import cn.luckdou.system.service.bus_dict.IBusDictService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 业务字典 服务实现类
 * </p>
 *
 * @author Dadou
 * @since 2017-08-08
 */
@Service
public class BusDictServiceImpl extends ServiceImpl<BusDictMapper, BusDict> implements IBusDictService {
    @Autowired
    private BusDictMapper busDictMapper;

    public List<BusDict> selectTypeGroupByType(){
        return busDictMapper.selectTypeGroupByType();
    }


    public List<BusDict> getListByType(String type){
        return busDictMapper.getListByType(type);
    }
}
